package com.tjec.project.portal.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tjec.framework.aspectj.lang.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tjec.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 系统消息对象 bms_msg
 *
 * @author liuxu
 * @date 2020-05-07
 */
public class BmsMsg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id 主键 */
    private Long id;

    /** 类型 用户类型（从数据字典获取） */
    @Excel(name = "类型 用户类型", readConverterExp = "从=数据字典获取")
    private String userType;

    /** 消息类型 */
    @Excel(name = "消息类型")
    private String msgType;

    /** 发送者 */
    @Excel(name = "发送者")
    private String sendUserId;

    /** 发送者名称 */
    @Excel(name = "发送者名称")
    private String sendUserName;
    /**
     * 发送者头像
     */
    private String sendUserPortrait;

    /** 接收人 */
    @Excel(name = "接收人")
    private String receiverUserId;

    /** 接收人名称 */
    @Excel(name = "接收人名称")
    private String receiverUserName;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String content;

    /** 状态 状态（0未读 1已读） */
    @Excel(name = "状态 状态", readConverterExp = "0=未读,1=已读")
    private String status;

    /** 发送时间 发送时间 */
    @Excel(name = "发送时间 发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    /** guid */
    private String guid;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserType(String userType)
    {
        this.userType = userType;
    }

    public String getUserType()
    {
        return userType;
    }
    public void setMsgType(String msgType)
    {
        this.msgType = msgType;
    }

    public String getMsgType()
    {
        return msgType;
    }
    public void setSendUserId(String sendUserId)
    {
        this.sendUserId = sendUserId;
    }

    public String getSendUserId()
    {
        return sendUserId;
    }
    public void setSendUserName(String sendUserName)
    {
        this.sendUserName = sendUserName;
    }

    public String getSendUserName()
    {
        return sendUserName;
    }

    public String getSendUserPortrait() {
        return sendUserPortrait;
    }

    public void setSendUserPortrait(String sendUserPortrait) {
        this.sendUserPortrait = sendUserPortrait;
    }

    public void setReceiverUserId(String receiverUserId)
    {
        this.receiverUserId = receiverUserId;
    }

    public String getReceiverUserId()
    {
        return receiverUserId;
    }
    public void setReceiverUserName(String receiverUserName)
    {
        this.receiverUserName = receiverUserName;
    }

    public String getReceiverUserName()
    {
        return receiverUserName;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setSendTime(Date sendTime)
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime()
    {
        return sendTime;
    }
    public void setGuid(String guid)
    {
        this.guid = guid;
    }

    public String getGuid()
    {
        return guid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userType", getUserType())
            .append("msgType", getMsgType())
            .append("sendUserId", getSendUserId())
            .append("sendUserName", getSendUserName())
            .append("sendUserPortrait", getSendUserPortrait())
            .append("receiverUserId", getReceiverUserId())
            .append("receiverUserName", getReceiverUserName())
            .append("content", getContent())
            .append("status", getStatus())
            .append("sendTime", getSendTime())
            .append("guid", getGuid())
            .toString();
    }
}
